LearningSession.Resume Method

Resumes a suspended session. Once the session has been resumed, it is considered active.

Parent Type: LearningSession

Namespace: Microsoft.LearningComponents

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public virtual void Resume ()

Exceptions
Exception type Condition
InvalidOperationException

Thrown if the session is not in the appropriate state to be resumed. Use IsResumeValid to anticipate if this exception will be thrown.

Remarks

This method does not save changes that result from resuming the session. The application should call CommitChanges after this method and prior to disposing the object to ensure changes are persisted.

The only time that resuming a session is valid is if the session has been previously suspended. Call IsResumeValid before calling this method to determine if the session is in a state which can be resumed.